package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :ttm
 * @description :
 */

public interface GoodsDao {

    List<Goods> getlistInventory(@Param("codeOrName") String codeOrName, @Param("goodsTypeId") Integer goodsTypeId);

    List<Goods> list(@Param("goodsName") String goodsName, @Param("goodsTypeId") Integer goodsTypeId);

    Integer saveGoods(Goods goods);

    Integer updateGoods(Goods goods);

    Goods findByGoodsId(Integer goodsId);

    Integer deleteGoods(Integer goodsId);

    List<Goods> getNoInventoryQuantity(@Param("offSet") int offSet, @Param("rows") Integer rows, @Param("nameOrCode") String nameOrCode);

    Integer getNoInventoryQuantityCount(@Param("nameOrCode") String nameOrCode);

    Integer getHasInventoryQuantityCount(@Param("nameOrCode") String nameOrCode);

    List<Goods> getHasInventoryQuantity(int offSet, Integer rows, String nameOrCode);

    List<Goods> getGoodsAlarm();

}
